package com.cardone.platform.authority.service;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import org.springframework.cache.annotation.CacheEvict;

import com.cardone.platform.authority.dao.AuthorityDao;

/**
 * 权限服务
 * 
 * @author yaoht
 * 
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class AuthorityDefaultService implements AuthorityService {
	/**
	 * 权限数据持久
	 */
	private AuthorityDao authorityDao;

	/**
	 * 导航服务
	 */
	private NavigationService navigationService;

	/**
	 * 许可服务
	 */
	private PermissionService permissionService;

	/**
	 * 角色服务
	 */
	private RoleService roleService;

	/**
	 * 用户组服务
	 */
	private UserGroupService userGroupService;

	@Override
	@CacheEvict(value = AuthorityService.BEAN_ID, allEntries = true)
	public void reload() {
		this.authorityDao.reload();
	}
}